﻿namespace RndMaterialDisposalService.Models.RequestModel
{
    /// <summary>
    /// 
    /// </summary>
    public class CapitalScrapElectronFlowReq
    {
        /// <summary>
        /// 1.清退报废申请
        /// </summary>
        public ScrapApplicationModel scrapApplication { get; set; } = new ScrapApplicationModel();
        /// <summary>
        /// 资产明细
        /// </summary>
        public List<ERPAssetInfoModel> assetDetail { get; set; } = new List<ERPAssetInfoModel>();
        /// <summary>
        /// 附件
        /// </summary>
        public List<Attachment> uploadFiles { get; set; } = new List<Attachment>();
        /// <summary>
        /// 
        /// </summary>
        public FormHeader formHeader { get; set; } = new FormHeader();
    }

    /// <summary>
    /// 1.清退报废申请
    /// </summary>
    public class ScrapApplicationModel
    {
        /// <summary>
        /// 申请人
        /// </summary>
        public string? Applicant { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? ApplicantPinyingName { get; set; }
        /// <summary>
        /// 申请日期
        /// </summary>
        public DateTime? ApplicantTime { get; set; }
        /// <summary>
        /// 申请人中文名称
        /// </summary>
        public string? ApplicantName { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string? Telephone { get; set; }
        /// <summary>
        /// 公司段
        /// </summary>
        public string? CompanySegment { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? CompanySegmentCode { get; set; }
        /// <summary>
        /// 部门（大部门）
        /// </summary>
        public string? LargeSectors { get; set; }
        /// <summary>
        /// 部门（小部门）
        /// </summary>
        public string? SmallSector { get; set; }
        /// <summary>
        /// 部门主管
        /// </summary>
        public string? DepartmentCode { get; set; }
        /// <summary>
        /// 部门一级资产管理员
        /// </summary>
        public string? FirstLevelAssetManager { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? FirstLevelAssetManagerId { get; set; }
        /// <summary>
        /// 是否电脑资产
        /// </summary>
        public bool? IsComputerAssets { get; set; }
        /// <summary>
        /// 是否台式机资产
        /// </summary>
        public bool? IsDesktopAssets { get; set; }
        /// <summary>
        /// 部门主管
        /// </summary>
        public string? DepartmentHead { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? DepartmentHeadId { get; set; }
        /// <summary>
        /// 清退或报废原因
        /// </summary>
        public string? ReasonForScrapping { get; set; }
        /// <summary>
        /// 资产报废所缺附件说明
        /// </summary>
        public string? AttachmentDescription { get; set; }
        /// <summary>
        /// 相关凭据
        /// </summary>
        public string? RelevantCredentials { get; set; }
        ///// <summary>
        ///// 清退报废资产明细
        ///// </summary>
        //public string? RetiredAssets { get; set; }
        ///// <summary>
        ///// 
        ///// </summary>
        //public string? ProcessFolio { get; set; }
        ///// <summary>
        ///// 
        ///// </summary>
        //public string? ProcessSubject { get; set; }
        ///// <summary>
        ///// 
        ///// </summary>
        //public string? ProcInstId { get; set; }
        ///// <summary>
        ///// 
        ///// </summary>
        //public string? LogisticsApprover { get; set; }
        ///// <summary>
        ///// 
        ///// </summary>
        //public string? LogisticsApproverId { get; set;

        /// <summary>
        /// 
        /// </summary>
        public ApproverList Approver { get; set; }


    }

    /// <summary>
    /// 
    /// </summary>
    public class ApproverList
    {
        /// <summary>
        /// 
        /// </summary>
        public ApproverItem? LogisticsDepartment { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class ApproverItem {
        /// <summary>
        /// 
        /// </summary>
        public string? userId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? userName { get; set; }
    }
}
